package 对象向上向下转型instaceof;

public class dog extends Animal {
    @Override
    public void eat() {
        System.out.println("狗吃骨头");
    }

    public void watch() {
        System.out.println("子类狗特有方法");
    }
}
